// "pkg-exms/lib/pkg-exms.common.js"
import {CurdHelper} from "@/main";

//
// defDialogView({content: String}) => Vue Component Def

export let EditCom = CurdHelper.defDialogView( {
  content: `<div>
<template>1111</template>
</div>`,
  dialogProps: {
    class: 'EditCom11111111111'
  },
})

export let DetailCom = CurdHelper.defDialogView( {
  content: `
    <z-descriptions :column="1" title="">
      <template slot="tbody__before">
        <colgroup>
          <col width="150"></col>
        </colgroup>
      </template>
      <template v-for="(item, key) in row">
        <z-descriptions-item v-if="columnKeys.includes(key)" 
        :label="findColumnDefByKey(key, 'label')" >
          <div>{{item}}</div>
        </z-descriptions-item>
      </template>
  </z-descriptions>
  `,
  dialogProps: {
    class: 'DetailCom11111111'
  }
})

export let obj = {
  EditCom,
  DetailCom,
}



